#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int cmp_char(const void* p1, const void* p2)
{
	return *(char*)p1 - *(char*)p2;
}



int main()
{
	char ptr[] = "fedcba";
	int sz = sizeof(ptr) / sizeof(ptr[0]);
	qsort(ptr, sz, sizeof(ptr[0]), cmp_char);
	for (int i = 0; i < sz; i++)
	{
		printf("%c", ptr[i]);
	}

	return 0;
}